﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LandandSurvey.Controls
{
    public partial class UserListItem : System.Web.UI.UserControl
    {
        protected void Page_Load( object sender, EventArgs e )
        {

        }

        public void setup( AppUser appuser )
        {
            lnkEdit.Attributes.Add( "href", "../EditUser.aspx?id=" + appuser.Id );
            lblUsername.InnerText = appuser.UserName;
            chkCanEdit.Checked = appuser.EditAbout;
            chkCanUpload.Checked = appuser.UploadFiles;
            chkAdmin.Checked = appuser.IsAdmin;
        }
    }
}